<% if session[:user].category_subscriptions.count > 0 %>
  <table>
    <tr>
      <td>
        <div id="subscription_category_title">
          <%= render :partial => "category_subscription_title", :locals => { :category_subscriptions => session[:user].category_subscriptions } %>
        </div>
      </td>
    </tr>
    <%  session[:user].category_subscriptions.each do |c| %>
      <tr>
        <td class="regulartext">
          <div id="subscription_category_<%= c.id %>">
            <%= render :partial => "category_subscription_view", :locals => { :category_subscription => c } %>
          </div>
        </td>
      </tr>
    <% end %>
  </table>
<% end %>
